<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
    body {
      background: #2c3e50;
    }
    main {
      width: 100vw;
      height: 100vh;
      background: #34495e;
      display: flex;
      justify-content: center;
      align-items: center;
      transform: scale(0);
      animation-name: scale, bg, radius;
      animation-duration: 2s, 4s, 2s;
      animation-fill-mode: forwards;
    }
    main::after {
      content: 'text';
      font-size: 2em;
      color: white;
      opacity: 0;
      animation-name: opacity;
      animation-duration: 2s;
      animation-delay: 4s;
      animation-fill-mode: forwards;
    }
    @keyframes opacity {
      to {
        opacity: 0.8;
      }
    }
    @keyframes scale {
      25% {
        transform: scale(0.5);
      }
      50% {
        transform: scale(1) rotate(360deg);
      }
      75% {
        transform: scale(0.5);
      }
      to {
        transform: scale(1);
      }
    }
    @keyframes bg {
      25% {
        background: #2ecc71;
      }
      50% {
        background: #e67e22;
      }
      75% {
        background: #9b59b6;
      }
      100% {
        background: #9b59b6;
      }
    }
    @keyframes radius {
      25% {
        border-radius: 50%;
      }
      50% {
        border-radius: 0;
      }
      75% {
        border-radius: 50%;
      }
      100% {
        border-radius: 0;
      }
    }
    
  </style>
</head>
<body>
  <main>
  </main>
</body>
</html>